]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
style: Swap text-align in RTL locales
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 3 Aug 2020 14:38:17 +0000 (16:38 +0200)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Mon, 3 Aug 2020 16:26:37 +0000 (16:26 +0000)
https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3037

data/theme/gnome-shell-sass/widgets/_calendar.scss
data/theme/gnome-shell-sass/widgets/_login-dialog.scss
data/theme/gnome-shell-sass/widgets/_message-list.scss
data/theme/gnome-shell-sass/widgets/_popovers.scss

index 70d95193a987884ecfd1be572876141b102d0e98..4f567a82dcc94927356a8cf53f4a950092436f5f 100644 (file)
     color: $fg_color;
     font-feature-settings: "tnum";
     @include fontsize($base_font_size);
-    text-align: right;
+
+    &:ltr { text-align: right; }
+    &:rtl { text-align: left; }
   }
 
   // timezone offset label
index 0b148bea9b1be3cc52e84dca7e86e4555db4edd6..06fdcf25a7bce29e407cfbd75ebed1f52f7e2944 100644 (file)
 .user-widget.horizontal .user-widget-label {
   @include fontsize($base_font_size + 2);
   font-weight: bold;
-  text-align: left;
   padding-left: 15px;
 
-  &:ltr { padding-left: 14px; }
-  &:rtl { padding-right: 14px; }
+  &:ltr { padding-left: 14px; text-align: left; }
+  &:rtl { padding-right: 14px; text-align: right; }
 }
 
 .user-widget.vertical .user-widget-label {
index e6a4d92bc180945bb87dc79178f71e20921cf75e..45edb26b2596b45233cd89fbd1b5888d31b9138f 100644 (file)
     > .event-time {
       color: transparentize($fg_color, 0.5);
       @include fontsize($base_font_size - 2);
-      text-align: right;
       /* HACK: the label should be baseline-aligned with a 1em label, fake this with some bottom padding */
       padding-bottom: 0.13em;
+
+      &:ltr { text-align: right };
+      &:rtl { text-align: left };
     }
   }
 
index a693f15039f2c766bbf817a9eb97b3f975724fa7..db9df9aa35e8ca8b1b018d6d2ad9a142fd748908 100644 (file)
@@ -76,8 +76,10 @@ $popover_arrow_height: 12px;
 
 // container for radio and check boxes
 .popup-menu-ornament {
-  text-align: right;
   width: 1.2em;
+
+  &:ltr { text-align: right };
+  &:rtl { text-align: left };
 }
 
 // separator